package cn.sofwin.day0106;

import java.util.Scanner;

public class Test02 {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int random = (int) (Math.random() * 10);
        int number, t;

        System.out.println("请输入会员号：");
        number = sc.nextInt();
        t = number / 100 % 10;
        System.out.println("幸运数为" + random);

        System.out.println("是否为幸运用户？");
        if (t == random) {
            System.out.println("是");
        } else {
            System.out.println("否");
        }


    }
}
